package com.design.reggie.service;

import com.design.reggie.dto.DishDto;
import com.design.reggie.entity.Dish;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author JPY
* @description 针对表【dish(菜品管理)】的数据库操作Service
* @createDate 2023-01-30 16:02:45
*/
public interface DishService extends IService<Dish> {

    // 新增菜品
    public void addWithFlavors(DishDto dishDto);

    // 根据id获取菜品和口味，用于回显
    public DishDto getByIdWithFlavors(Long id);

    // 更新菜品信息
    public void updateWithFlavors(DishDto dishDto);

    // 删除菜品
    public void deleteWithFlavors(String ids);

}
